<?php
namespace app\common\lib;
class Num{

	public static function getCode($len){
		// 生成短信验证码
		$code = rand(1000,9999);
		$code = 1234;
		if($len == 6){
			$code = rand(100000,999999);
		}

		return $code;
	}
}